n=0b00000000000000000000000000001011

def hammingWeight(n: int) -> int:
    strn=str(bin(n))[2:]
    print(bin(n))
    print(strn)
    count=0
    for i in range(len(strn)):
        if strn[i]=='1':
            count+=1
    print(count)


hammingWeight(n)
